/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package onpu_dms_xls.kernel.common.pdf.composite;


/**
 *
 * @author snbm
 */
public abstract class ExtractWriter {
    
    protected String fileName;
    protected VariableValueForLabelGetter dataToPrintSource;

    protected ExtractWriter(String fileName, VariableValueForLabelGetter dataToPrintSource) {
        this.fileName = fileName;
        this.dataToPrintSource = dataToPrintSource;
    }

    public static ExtractWriter createPDF_ExtractWriter(String fileName, VariableValueForLabelGetter dataToPrintSource) {
        return new PDF_ExtractWriter(fileName, dataToPrintSource);
    }

    public abstract void addTask(ExtractWriterTask task);

    public abstract void removeTask(ExtractWriterTask task);

    public abstract void print() throws Exception;
}
